<template>
    <WorkOrderDetial ref="detialRef" :id="id" :project="project" :billType="billType"></WorkOrderDetial>
</template>

<script setup lang="ts">
import WorkOrderDetial from "../components/WorkOrderDetial.vue";
import { onLoad } from '@dcloudio/uni-app';
import { ref } from 'vue';

const id = ref('');
const project = ref('');
const detialRef = ref<any>(null);
const billType = ref('报事申请');

onLoad((req) => {
    console.log('req', req)
    id.value = req.id;
    project.value = req.project??"报事申请";
})
const SelectionChanged = (type, item) => {
    detialRef.value.SelectionChanged(type, item)
}

defineExpose({
    SelectionChanged
})

</script>

<style lang="scss">

</style>